<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<body>

<ui:composition template="/template/template.xhtml">

	<ui:define name="title">Salvar Cliente</ui:define>

	<ui:define name="body">
		<h:form id="form">
			<h:panelGrid columns="1" width="70%">
				<h:panelGrid columns="3" width="100%">	
					<h:panelGrid>
						<h:outputLabel value="Nome:" for="nome" />
						<h:inputText id="nome" name="nome" value="#{crudCliente.clienteTO.nome}"/>
					</h:panelGrid>
					<h:panelGrid>
						<h:outputLabel value="Tipo Pessoa:" for="tipoPessoa" />
						<h:inputText id="tipoPessoa" name="tipoPessoa" value="#{crudCliente.clienteTO.fisicoJuridico}" />
					</h:panelGrid>
					<h:panelGrid>
						<h:outputLabel for="status" value="Status:"></h:outputLabel>
						<h:selectOneMenu id="status" value="#{crudCliente.statusValue}" styleClass="tamanhoMedio">
							<f:selectItems value="#{crudCliente.listaStatus}" />
						</h:selectOneMenu>
					</h:panelGrid>
				</h:panelGrid>
				
				<h:panelGrid>
					<h:outputLabel value="Descricao:" for="descricao" />
					<h:inputTextarea id="descricao" name="descricao"
						value="#{crudCliente.clienteTO.descricao}" cols="60" rows="6"/>
				</h:panelGrid>
				
				<h:commandButton value="salvar" action="#{crudCliente.salvar}" styleClass="button"/>

			</h:panelGrid>
		</h:form>
	</ui:define>

</ui:composition>

</body>
</html>